package com.suyafei.feign;

import com.suyafei.util.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: suyafei-1024-shop
 * @description
 * @author: luffy
 * @create: 2021-03-18 16:29
 */
@FeignClient(name = "suyafei-order-service")
public interface ProductOrderFeignService {
    /**
     * 查询订单状态
     * @param outTradeNo
     * @return
     */
    @GetMapping("/api/order/v1/out_trade_no")
    JsonData queryProductOrderState(@RequestParam("out_trade_no") String outTradeNo);
}
